/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package clip.model;

import L.L;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;

/**
 *
 * @author gob
 */
public class ImageContainer extends StreamContainer {

    public ImageContainer(InputStream is) {
        super(is);
    }

    public Image getImage() {
        try {
            return ImageIO.read(this);
        } catch (IOException e) {
            L.n("IOException in getImage");
        }
        return null;
    }

    
    
    
    
    public static void main(String[] args)  {
        try {
            
        } catch (Exception ex) {
            Logger.getLogger(ImageContainer.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        
    }
}
